package com.china.school;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ForwardController {

    @GetMapping("/error1")
    public String error1(){
        System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
        return "/error1.html";
    }
    @GetMapping("/error2")
    public String error2(){
        return "/error2.html";
    }
    {
        System.out.println("------------------");
    }

    {
        System.out.println("*************************************");

    }
}
